const express = require('express');
const router = express.Router();
const { auth, authorize } = require('../middleware/auth');
const { uploadImage } = require('../controllers/uploadController');

// 需要认证，允许项目相关角色上传
router.use(auth);

router.post('/uploads/images', authorize('admin', 'project_admin', 'project_user'), uploadImage);

module.exports = router;


